package com.dongdongshop.service;

import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.pojo.TbCities;
import com.dongdongshop.pojo.TbProvinces;
import com.dongdongshop.vo.AddressVo;

import java.util.List;

public interface TbAddressService {


    //查询全部
    List<TbAddress> getall();

    //省查询全部
    List<TbProvinces> getsanji();

    //市
    List<TbCities> getcity(String provinceid);

    //县
    List<TbAreas> getarea(String cityid);

    //增加
    int insertadd(TbAddress ta);

    //回显
    TbAddress upbyid(Long id);

    //修改
    int updateadd(TbAddress ta);

    //删除
    int deletebyid(Long id);

    //省
    List<TbProvinces> getsheng();

    //市
    List<TbCities> getshi();


    //县
    List<TbAreas> getxian();

    //查询全部vo封装所有
    List<AddressVo> getaddVo(String username);

    //根据用户查询收货地址
    List<TbAddress> getAddress(String username);

    //根据用户id查询数据
    AddressVo getaddVoid(Long userid);
}
